package com.khalil.kkadmin.system.user.domain;

import com.khalil.kkadmin.infrastructure.jpa.domain.EntityBase;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@EqualsAndHashCode(callSuper = true)
@EntityListeners(AuditingEntityListener.class)
@Table(name = "sys_user")
@Entity
@Data
public class SysUser extends EntityBase<Long> {

    private String username;

    private String password;

    @Column(length = 20)
    private String salt;

    private String nickname;

    private String avatar;

    private String email;

    @Column(length = 20)
    private String mobile;

    private Integer status;

    @Column(length = 4000)
    private String remark;
}
